import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service

# 打开浏览器
driver = webdriver.Chrome()

driver.get("http://121.43.169.97:8848/pageA.html")

driver.find_element(By.XPATH,"//input[@name='userA']").send_keys("admin")
driver.find_element(By.XPATH,"//*[@id='passwordA']").send_keys("123456")

driver.find_element(By.XPATH,"//type='button' and @value='prompt']").click()

time.sleep(3)
driver.quit()